#include "modules/drivers/lidar/orin_hesai/common/data_type.h"


namespace apollo {
namespace drivers {
namespace lidar_hesai {
LidarPacket::LidarPacket() {
  type = LidarType::UNKNOWN;
  stamp = 0;
}

void LidarPacket::CopyFrom(const LidarPacket src) {
  type = src.type;
  stamp = src.stamp;
  if (type == LidarType::PANDAR_XT_32) {
    memcpy(&hesaiPacket, &(src.hesaiPacket), sizeof(HesaiLidarPacketData));
  } 
}

}  // namespace lidar_hesai
}  // namespace drivers
}  // namespace apollo
